gtk/gtkeventcontrollerscroll.c: Include fallback-c89.c
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 28 Aug 2018 09:28:23 +0000 (17:28 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 28 Aug 2018 09:43:11 +0000 (17:43 +0800)
... instead of just math.h, as it uses the C99 function trunc().  This
is so that the code builds on pre-C99 compilers.

gtk/gtkeventcontrollerscroll.c

index 73848cd6e577476ee6f9ac94c1aa636724d536a3..314be1b7088b11d9b748ae7537b9a9a1dbf115ea 100644 (file)
@@ -60,8 +60,6 @@
  **/
 #include "config.h"
 
-#include "math.h"
-
 #include "gtkintl.h"
 #include "gtkwidget.h"
 #include "gtkeventcontrollerprivate.h"
@@ -70,6 +68,8 @@
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
 
+#include "fallback-c89.c"
+
 #define SCROLL_CAPTURE_THRESHOLD_MS 150
 
 typedef struct